package com.kaili.db.mapper;

import com.kaili.pojo.entity.HsEwbsDispatchDetail;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.kaili.common.exception.BaseExcept;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author cgm
 * @since 2018-05-08
 */
public interface HsEwbsDispatchDetailMapper extends BaseMapper<HsEwbsDispatchDetail> {

    int insertBatch(List<HsEwbsDispatchDetail> list);

    List<HsEwbsDispatchDetail> queryEwbDispatchDetail(Map<String, Object> search)throws BaseExcept;

    List<HsEwbsDispatchDetail> queryEwbDispatch(Map<String, Object> search)throws BaseExcept;

    /**
     * 获取已派送或已签收数量
     * @param search
     * @return
     * @throws BaseExcept
     */
    Integer queryDispatchOrSignCount(Map<String, Object> search)throws BaseExcept;
}
